{% extends "./inc/base.html" %}
{% block content %}

<section class="vbox">
    <header class="header bg-light dk">
        <p>{{controller.meta_title}}</p>
    </header>
    <section class="scrollable wrapper">
        <div class="row">
           <div class="col-md-{{12/controller.config('ext.sitestat.width')}}">
<section class="panel panel-default">
    <header class="panel-footer bg-white">
        <div class="row text-center no-gutter">
            <div class="col-md-2 b-r b-light">
                <p class="h3 font-bold m-t">
                {%if todayIncome %}{{todayIncome|formatCurrencyFour}}{%else%}0.0000{%endif%}
               </p>
                <p class="text-muted">今日收入</p>
            </div>
            <div class="col-md-2 b-r b-light">
                <p class="h3 font-bold m-t">
                 {%if incomeTotal %}{{incomeTotal|formatCurrencyFour}}{%else%}0.0000{%endif%}
                </p>
                <p class="text-muted">总收入</p>
            </div>
            <div class="col-md-2 b-r b-light">
                <p class="h3 font-bold m-t">
                 {%if rebateTotal %}{{rebateTotal|formatCurrencyFour}}{%else%}0.0000{%endif%}
                
                </p>
                <p class="text-muted">返利</p>
            </div>
            <div class="col-md-2 b-r b-light">
                <p class="h3 font-bold m-t">
                {%if new_agent_count %}{{new_agent_count}}{%else%}0{%endif%}
                </p>
                <p class="text-muted">今日新增代理数</p>
            </div>
            <div class="col-md-2 b-r b-light">
                <p class="h3 font-bold m-t">
                {%if agent_count %}{{agent_count}}{%else%}0{%endif%}
                </p>
                <p class="text-muted">代理总数</p>
            </div>
            <div class="col-md-2">
                <p class="h3 font-bold m-t">
                {%if active_player_count %}{{active_player_count}}{%else%}0{%endif%}
                </p>
                <p class="text-muted">三日活跃玩家</p>
            </div>
            <div class="col-md-2">
                <p class="h3 font-bold m-t">
                {%if new_player_count %}{{new_player_count}}{%else%}0{%endif%}
                </p>
                <p class="text-muted">今日新增玩家</p>
            </div>
            <div class="col-md-2">
                <p class="h3 font-bold m-t">
                {%if player_count %}{{player_count}}{%else%}0{%endif%}
                </p>
                <p class="text-muted">玩家总数</p>
            </div>
            
        </div>
    </header>
</section>
</div>

<div class="col-md-{{12/controller.config('ext.devteam.width')}}">
    <section class="panel panel-default portlet-item">
        <header class="panel-heading">
            <ul class="nav nav-pills pull-right">
                <li>
                    <a class="panel-toggle text-muted" href="#"><i class="fa fa-caret-down text-active"></i><i class="fa fa-caret-up text"></i></a>
                </li>
            </ul>
                    实时数据
        </header>
        <section class="panel-body">
            <article class="media">
                <div class="pull-left">
                                <span class="fa-stack fa-lg">
                        <i class="fa fa-circle fa-stack-2x"></i>
                        <i class="fa fa-hourglass fa-stack-1x text-white"></i>
                      </span>
                </div>
                <div class="media-body">
                    <h4 class="h4">在线桌数</h4>
                    <small class="block m-t-xs">
                   [好友房:{{friend_room_count}}]  [俱乐部:{{club_room_count}}]  [欢乐场:{{jinbi_room_count}}]</small>
                </div>
            </article>
            <div class="line pull-in"></div>
            <article class="media">
                <div class="pull-left">
                                <span class="fa-stack fa-lg">
                        <i class="fa fa-circle fa-stack-2x "></i>
                        <i class="fa fa-hourglass-1 fa-stack-1x text-white"></i>
                      </span>
                </div>
                <div class="media-body">
                    <h4 class="h4">在线人数</h4>
                    <small class="block m-t-xs">{{online_player_count}}</small>
                </div>
            </article>
            <div class="line pull-in"></div>
            <article class="media">
                <div class="pull-left">
                                <span class="fa-stack fa-lg">
                        <i class="fa fa-circle fa-stack-2x "></i>
                        <i class="fa fa-hourglass-2 fa-stack-1x text-white"></i>
                      </span>
                </div>
                <div class="media-body">
                    <h4 class="h4 ">实时局数</h4>
                    <small class="block m-t-xs">{{online_round_count}}</small>
                </div>
            </article>
            
        </section>
    </section>
</div>

        </div>
    </section>
</section>

{% endblock %}